#include-once

Func DateTimeUtils_FormatTime($nMilliseconds)
	$nMilliseconds = Ceiling($nMilliseconds)
	Local $nHours = Int($nMilliseconds/3600000)
	$nMilliseconds -= $nHours*3600000
	Local $nMins = Int($nMilliseconds/60000)
	$nMilliseconds -= $nMins*60000
	Local $nSecs = Int($nMilliseconds/1000)
	$nMilliseconds -= $nSecs*1000
	Return StringFormat('%02s:%02s:%02s:%03s', $nHours, $nMins, $nSecs, $nMilliseconds)
EndFunc